<!doctype html>
<html lang="en"><head>
    <meta charset="utf-8">
    <title>信息发布系统</title>
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
    <link rel="stylesheet" href="font-awesome/css/font-awesome.css">

    <script src="js/jquery.min.js" type="text/javascript"></script>

    <script src="jQuery-Knob/js/jquery.knob.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function() {
            $(".knob").knob();
        });
    </script>


    <link rel="stylesheet" type="text/css" href="css/theme.css">
    <!--<link rel="stylesheet" type="text/css" href="stylesheets/premium.css">-->

</head>
<body class=" theme-blue">

<!-- Demo page code -->

<script type="text/javascript">
    $(function() {
        var match = document.cookie.match(new RegExp('color=([^;]+)'));
        if(match) var color = match[1];
        if(color) {
            $('body').removeClass(function (index, css) {
                return (css.match (/\btheme-\S+/g) || []).join(' ')
            })
            $('body').addClass('theme-' + color);
        }

        $('[data-popover="true"]').popover({html: true});

    });
</script>
<style type="text/css">
    #line-chart {
        height:300px;
        width:800px;
        margin: 0px auto;
        margin-top: 1em;
    }
    .navbar-default .navbar-brand, .navbar-default .navbar-brand:hover {
        color: #fff;
    }
</style>

<script type="text/javascript">
    $(function() {
        var uls = $('.sidebar-nav > ul > *').clone();
        uls.addClass('visible-xs');
        $('#main-menu').append(uls.clone());
    });
</script>


<!--顶部-->
<div class="navbar navbar-default" role="navigation">
    <div class="navbar-header">
        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </button>
        <a class="" href="index.html"><span class="navbar-brand"><span class="fa fa-paper-plane"></span> 四川腾达建筑设计有限公司</span></a></div>

    <div class="navbar-collapse collapse" style="height: 1px;">
        <ul id="main-menu" class="nav navbar-nav navbar-right">
            <li class="dropdown hidden-xs">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                    <span class="glyphicon glyphicon-user padding-right-small" style="position:relative;top: 3px;"></span>admin
                    <i class="fa fa-caret-down"></i>
                </a>

                <ul class="dropdown-menu">
                    <li><a href="./">My Account</a></li>
                    <li><a tabindex="-1" href="sign-in.html">Logout</a></li>
                </ul>
            </li>
        </ul>

    </div>
</div>




<div class="sidebar-nav">
    <ul>
        <li><a href="#" data-target=".dashboard-menu" class="nav-header" data-toggle="collapse"><i class="fa fa-fw fa-dashboard"></i>素材管理<i class="fa fa-collapse"></i></a></li>
        <li><ul class="dashboard-menu nav nav-list collapse in">
            <li><a href="ckeditor/samples/index.html"><span class="fa fa-caret-right"></span> 新闻添加</a></li>
            <li><a href="newsclass_add.html"><span class="fa fa-caret-right"></span> 新闻分类添加</a></li>
            <li><a href="new_index.html"><span class="fa fa-caret-right"></span> 新闻推送</a></li>

            <li><a href="photo_add.html"><span class="fa fa-caret-right"></span> 图片添加</a></li>
            <li><a href="photo_index.html"><span class="fa fa-caret-right"></span> 图片推送</a></li>

            <li><a href="video_add.html"><span class="fa fa-caret-right"></span> 视频添加</a></li>
            <li><a href="video_index.html"><span class="fa fa-caret-right"></span> 视频推送</a></li>

            <li><a href="text_add.html"><span class="fa fa-caret-right"></span> 文字添加</a></li>
            <li><a href="text_index.html"><span class="fa fa-caret-right"></span> 文字推送</a></li>
        </ul></li>

        <li data-popover="true"  rel="popover" data-placement="right"><a href="#" data-target=".premium-menu" class="nav-header collapsed" data-toggle="collapse"><i class="fa fa-fw fa-fighter-jet"></i>设备管理<i class="fa fa-collapse"></i></a></li>
        <li><ul class="premium-menu nav nav-list collapse">

            <li ><a href="terminnal_index.html"><span class="fa fa-caret-right"></span> 设备查看</a></li>

        </ul></li>


        <li><a href="system.html" class="nav-header"><i class="fa fa-fw fa-comment"></i> 系统管理</a></li>

    </ul>
</div>

<div class="content">

    <form class="form-horizontal" method="POST" id="myform" enctype="multipart/form-data"
          >
        <div class="form-group">
            <label for="upload" class="col-sm-2 control-label">图片:</label>
            <div class="col-sm-10">
                <input type="file" name="upload" id="upload">
            </div>
        </div>
        <div class="form-group">
            <label for="introduce" class="col-sm-2 control-label">图片简介</label>
            <div class="col-sm-10">
                <input type="text" name="introduce" id="introduce">
            </div>
        </div>

        <div class="form-group">
            <label for="url" class="col-sm-2 control-label">图片链接地址</label>
            <div class="col-sm-10">
                <input type="text" name="url" id="url">
            </div>
            <input type="hidden" name="filetype" id="filetype">
        </div>
        <div class="form-group">
            <label for="commit" class="col-sm-2 control-label"></label>
            <div class="col-sm-10">
                <input type="submit"
                       value="上传" id="commit">
            </div>

        </div>
    </form>

</div>


<script src="js/bootstrap.min.js"></script>

<script src="js/config.js"></script>
<script src="js/news_index.js"></script>
<script type="text/javascript">
    $("[rel=tooltip]").tooltip();
    $(function() {
        $('#commit').on('click',function(){
            var up = $('#upload').val().split('.');
            $('#filetype').val(up[up.length-1]);
        });

        $('#myform').attr("action", host+"/photo");
        $('.demo-cancel-click').click(function(){return false;});
    });
</script>


</body></html>
